package com.onec.service.api.dto.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ONEC
 * @since 2019-07-16
 */
@Data
public class RequestData implements Serializable {

    private static final long serialVersionUID = -8008271239921313489L;

    /**
     * 代理商编号
     */
    @Length
    @NotNull(message = "版本号无效")
    private String version;

    @NotBlank(message = "编码格式不可空")
    private String charset;

    @NotBlank(message = "签名数据不可空")
    private String sign;

    private String source;

    private String token;
    /**
     * 机构编号
     */
    @NotBlank(message = "代理商编号不可空")
    private String agentNo;

    @NotBlank(message = "请求服务不可空")
    private String service;

    @NotBlank(message = "请求数据不可空")
    private String bizContent;

    @NotBlank(message = "timestamp必传")
    private String timestamp;


}
